package com.chengwt.dao.impl;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.chengwt.dao.DirectoryDao;
import com.chengwt.entity.Directory;

public class DirectoryDaoTest {
	@Test
	public void some(){
	ApplicationContext ctx = new ClassPathXmlApplicationContext("beans.xml");
	DirectoryDao directoryDao = (DirectoryDao)ctx.getBean("directoryDao");
	Directory d = new Directory();
	boolean b=directoryDao.saveDirectory(d);
	System.out.println(b);
	}
}
